import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

import java.util.Collection;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;

public class text60 {
    public static void main(String[] args) {
        TreeMap<String,Integer>a=new TreeMap<>();
        a.put("hello",1);
        a.put("abc",2);
        a.put("fv",3);
        System.out.println(a);
        Integer b=a.get("hello");

        System.out.println(b);
        //Integer d=a.remove("abc");
        //System.out.println(d);
        Set<String> m=a.keySet();
        System.out.println(m);
        Collection<Integer> z=a.values();
        System.out.println(z);
        Set<Map.Entry<String,Integer>>n=a.entrySet();
        for (Map.Entry<String,Integer>l:n)
         {
             System.out.println("Key:"+l.getKey()+" "+"Value:"+l.getValue());

        }

    }
}
